/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deatax.game.model;

import java.util.ArrayList;

/**
 *
 * @author pson
 */
public class ModelNode {
    protected ModelNode parent;
    protected ArrayList<ModelNode> children;
    
    public ModelSegment root;
    
    public String[] textures;
    //public int[] textures;
    public ModelMaterial[] materials;
    public ModelMesh[] meshes;
    public ModelAnim[] anims;

    public ModelNode() {
        children = new ArrayList<ModelNode>();
    }
    
    /**
     * This should only be called from the addChild method. Use addChild for 
     * setting hierarchy
     * @param c 
     */
    protected void setParent(ModelNode c) {
        parent = c;
    }
    
    public void addChild(ModelNode c) {
        c.setParent(this);
        children.add(c);
    }
    
    
}
